package com.ruoyi.front_desk.overview.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.front_desk.Result;
import com.ruoyi.name_category.domain.NameCategory;
import com.ruoyi.name_category.service.INameCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 * 分层级显示，人大概况
 */
@RestController
@RequestMapping("/frontdesk/overview")
public class OverviewController extends BaseController {

    @Autowired
    private INameCategoryService nameCategoryService;
    @GetMapping("/list")
    public Result list(NameCategory nameCategory)
    {
        //startPage();
        List<NameCategory> list = nameCategoryService.selectNameCategoryList(nameCategory);
        return Result.success(list);
    }
}
